package com.lkd.client.config;

import lombok.Getter;

@Getter
//建立枚举类管理消息协议
public enum MsgType {

    /**
     * versionCfg该枚举代表同步基础信息的协议
     */
    versionCfg("versionCfg", "同步基础信息"),
    channelCfg("channelCfg", "同步管道信息"),
    skuCfg("skuCfgResp", "同步商品信息"),
    skuPrice("skuPrice", "价格变动"),
    supplyReq("supplyReq", "价格变动"),
    vendoutReq("vendoutReq", "出货通知"),
    vendoutResp("vendoutResp", "出货上报"),
    //==========================================================================================
//    deviceMessageReporting("deviceMessageReporting","设备消息上报"),
//    platformMessageToDevice("platformMessageToDevice","平台下发消息给设备"),
//    platformCommandToDevice("platformCommandToDevice","平台下发命令给设备"),
//    deviceResponse("deviceResponse","设备返回命令响应"),
//    siteDeviceProperties("siteDeviceProperties","平台设置设备属性"),
//    deviceReporting("deviceReporting","设备事件上报"),
//    platformDelivery("platformDelivery","平台事件下发");
    photoReq("0", "IOT 平台 捷讯网关边缘网关驱动"),

    photoResp("photoResp", "拍照响应");

    private String type;//类型就是用来判断协议名称的
    private String desc;//协议描述

    MsgType(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }
}
